package com.xxxx.yebserver.mapper;

import com.xxxx.yebserver.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.yebserver.vo.MenusWithRoleVo;
import com.xxxx.yebserver.vo.RoleWithMenuVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxq
 * @since 2021-06-15
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRoles(@Param("id") Long id);

    List<RoleWithMenuVo> getRoleWithMenu(@Param("rid") Long rid);
}
